$(function(){
    var loginName=baseFunction.getUrlParameterValueByKey("loginName");
    // 修改密码
    $("#changePassword").on("click",function(){
        window.location.href="my_changePassword.html?loginName="+loginName+"";
    })
    // 找回登录密码
    $("#recoverPassword").on("click",function(){
        window.location.href="my_recoverPassword.html?loginName="+loginName+"&isPay=login";
    })
    // 设置支付密码
    $("#paymentPassword").on("click",function(){
        var userData=baseFunction.getUserInfo();
        var status=JSON.parse(JSON.parse(userData).merch).isSetPassword //状态码  1未设置   2  已设置
        if(status==1){
            window.location.href="my_paymentPassword.html?loginName="+loginName+"";
        }else if(status==2){
            window.location.href="my_verifyPassword.html?loginName="+loginName+"";
        }
        
    })
    // 找回支付密码
    $("#retrievePayPassword").on("click",function(){
        window.location.href="my_recoverPassword.html?loginName="+loginName+"&isPay=true";
    })
})